<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    mixin 示例
</div>
</body>
<script src="../../js/vue.js"></script>
<script type="text/javascript">
    var myMixin = {
        created() {
            alert('mixin created 先执行')
        }
    };
    var vm = new Vue({
        el: '#app',
        mixins:[myMixin],
        created() {
            alert('组件 created 后执行')
        }
    })
</script>
</html>
